package com.greyu.ysj.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.greyu.ysj.entity.CbtMinerRate;
import com.greyu.ysj.entity.CbtMinerRateExample;
import com.greyu.ysj.mapper.CbtMinerRateMapper;
import com.greyu.ysj.service.CbtMinerRateService;

@Service
@Transactional
public class CbtMinerRateServiceImpl implements CbtMinerRateService {
	@Autowired
	private CbtMinerRateMapper cbtMinerRateMapper;

	@Override
	public List<CbtMinerRate> selectBycoinId(Integer coinId) {
		CbtMinerRateExample cbtMinerRateExample = new CbtMinerRateExample();
		CbtMinerRateExample.Criteria criteria=cbtMinerRateExample.createCriteria();
		criteria.andCoinIdEqualTo(coinId);
		List<CbtMinerRate> list=this.cbtMinerRateMapper.selectByExample(cbtMinerRateExample);
		return list;
	}

	@Override
	public Double seleltMaxRatioBycoinId(Integer coinId) {
		// TODO Auto-generated method stub
		return this.cbtMinerRateMapper.seleltMaxRatioBycoinId(coinId);
	}

	@Override
	public Double selectMaxBycoinId(Integer coindId) {
		// TODO Auto-generated method stub
		return this.cbtMinerRateMapper.selectMaxBycoinId(coindId);
	}

	@Override
	public Double selectMinBycoinId(Integer coinId) {
		// TODO Auto-generated method stub
		return this.cbtMinerRateMapper.selectMinBycoinId(coinId);
	}
	



	

}
